<!--<script language="javascript" type="text/javascript" src="http://localhost/disenoweb1/css/niceForm/niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="http://localhost/disenoweb1/css/niceForm/niceforms-default.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/disenoweb1/css/niceForm/style.css" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>-->
<!--<div class="main_content">
    <div class="center_content">-->
        <div class="right_content">




	<center><h1>Envie Su Mensaje!</h1></center>
           <table>
            <div id="contact_form">

                    <form action="cliente/create_member" method="post" class="niceform">

                        <fieldset>

                            <div>
                                    <?php
	                                echo form_open('contact/submit');

	                                echo form_input('name', 'Nombre', 'id="name"');
	                                echo form_input('email', 'Email', 'id="email"');


	                              $data = array('name' => 'message', 'cols' => 35, 'rows' => 12);
	                              echo form_textarea($data, 'Mensage', 'id="message"');

	                              echo form_submit('submit', 'Enviar', 'id="submit"');
                                  echo form_reset('reset','Canelar');
	                              echo form_close();
                                ?>
                            </div>
                        </fieldset>
                    </form>
             </div>
            </table>
              <!-- // </fieldset>

               // </form>-->


   <!-- </div><!-- end of right content-->


</div>   <!--end of center content -->

<!--</body>
</html>-->

  <script type="text/javascript">
   $('#submit').click(function() {
	
	var name = $('#name').val();
	
	if (!name || name == 'Name') {
		alert('Please enter your name');
		return false;
	}
	
	var form_data = {
		name: $('#name').val(),
		email: $('#email').val(),
		message: $('#message').val(),
		ajax: '1'		
	};


	$.ajax({
		url: "contact/submit",
		type: 'POST',
		data: form_data,
		success: function(msg) {
            $( ".right_content" ).empty();
            $( ".right_content" ).append( data );
		}
	});
	
	return false;
});
	
	
</script>


<!-- end contact_form-->